//package com.share.lottery.activity.caibotools;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import com.share.lottery.base.Constants;
//import com.tencent.tencentmap.mapsdk.map.GeoPoint;
//import com.tencent.tencentmap.mapsdk.map.OverlayItem;
//import com.tencent.tencentmap.mapsdk.search.PoiItem;
//import com.tencent.tencentmap.mapsdk.search.PoiResults;
//import com.tencent.tencentmap.mapsdk.search.PoiSearch;
//
//import android.os.Handler;
//import android.os.Message;
//import android.util.Log;
//
///**
// * @author py
// *附近的东西
// */
//public class AdressTask implements Runnable {
//	private Handler handler;
//	private PoiSearch poiSearch;
//	public AdressTask(Handler handler,PoiSearch poiSearch) {
//		this.handler = handler;
//		this.poiSearch = poiSearch;
//	}
//
//	public void run() {
//
//		try {
//			GeoPoint geoPtCenter = new GeoPoint((int) (Constants.Latitude * 1E6), (int) (Constants.Longitude * 1E6));
//			List<OverlayItem> datas = new ArrayList<OverlayItem>();
//			PoiResults results = poiSearch.searchPoiInCircle("彩票销售店", geoPtCenter, 10000);
//			for (PoiItem poiItem : results.getCurrentPagePoiItems()) {
//				GeoPoint geoPoint = poiItem.point;
//				OverlayItem item=new OverlayItem(geoPoint, "",poiItem.address);
//				item.setDragable(false);
//				datas.add(item);
//				Log.i("test", "地图=="+poiItem.address);
//			}
//			Message msg = new Message();
//			msg.obj = datas;
//			msg.what = 1;
//			handler.sendMessage(msg);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//
//	}
//
//}
